package adv9;

import java.net.*;
import java.io.*;

public class AdvancedServer {
	// 192.168.10.164
	public static void main(String[] args) throws IOException {
		ServerSocket st = new ServerSocket(6666);
		System.out.println("服务器启动了！！！");
		while (true) {
			Socket s = st.accept();
			// Thread th = new ChatThread(s);
			// Thread th = new ObjectThread(s);
			Thread th = new ObjectFileThread(s);// new FileSendThread(s);
			th.start();
		}
	}
}
